const createView = (data) => {

    let markup = `
<form action="" class="form-horizontal modal-form" role="form" id="form">
    <div class="form-group">
        <label for="username" class="col-xs-2 control-label">用户名:</label>
        <div class="col-xs-9">
            <input type="text" id="name" name="name"  class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="col-xs-2 control-label">密码:</label>
        <div class="col-xs-9">
            <input type="password" id="pwd" name="pwd"  class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="repass" class="col-xs-2 control-label">重复密码:</label>
        <div class="col-xs-9">
            <input type="password" id="repass" name="repass"  class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="mobile" class="col-xs-2 control-label">手机号:</label>
        <div class="col-xs-9">
            <input type="text" id="mobile" name="mobile"  class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="" class="col-xs-2 control-label">角色:</label>
        <div class="col-xs-9">
          <div  id="rolelist">
             ${data}
          </div>
        </div>
    </div>
    <div class="form-group">
        <div class="btn-box">
          <input type="button" class="btn btn-primary" id="submitBtn"  value="提交">
        </div>
    </div>
</form>
    `;

    return markup;
};

export {createView}